package com.fagejiang.neo4j.repository;

import com.fagejiang.neo4j.model.Alipay;
import com.fagejiang.neo4j.model.Identity;
import com.fagejiang.neo4j.relation.Transfer;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;

import java.util.List;
import java.util.Map;

/**
 * 你还没有写描述儿~
 *
 * @author <发哥讲Java-694204477@qq.com>
 * @version 1.0
 * @date 2021-07-06 17:27
 */

public interface AlipayRepository extends Neo4jRepository<Alipay, Long> {


//    @Query(value = "match p=(:Alipay)-[*]-(:Alipay) return p")
//    @Query(value = "match p=(:Identity)-[*]-(:Alipay) return p")
    @Query(value = "match (p:Identity)-[n:My_app]-(m:Alipay)-[r:Transfer]-(s:Alipay) return p,n,m,s,r")
    List<Transfer> getAllAlipay();
//    List<Map<String,Object>> getAllAlipay();
}
